<section id="newArticle" class="info-aside mt20">
    <h3><span>最新发布</span></h3>
    <ul class="mt10">
        <li class="new-article" th:each="post:${recentNews}" th:object="${post}">
            <a href="#" class="new-list-img clearfix" th:href="@{*{'/post/view/'+id}}">
                <span class="new-img-box">
                    <img src="http://placehold.it/300x180" th:src="${(post.snapshot != null)? post.snapshot.original : 'http://placehold.it/300x180'}"/>
                </span>
                <div class="new-list-scan">
                    <span class="scan-info" fx="limit" num="15" th:text="*{title}">极客的最佳玩具 MYO智能腕带评测</span>
                    <span class="scan-num1" th:inline="text"><i class="fa fa-eye"></i>[[*{views}]]</span>
                    <span class="scan-num2" th:inline="text"><i class="fa fa-comment"></i>[[*{comments}]]</span>
                </div>
            </a>
            <div class="new-list-author">
                <a href="#">
                    <span class="new-author-shortcut">
                         <a th:if="${post.author.id != 1}" th:href="@{'/users/' + ${post.author.id}}" >
                            <img th:src="@{*{author.avatar}}" src="http://placehold.it/24x24"/>
                         </a>                         
                         <a th:if="${post.author.id == 1}" href="javascript:void(0);" >
                            <img th:src="@{*{author.avatar}}" src="http://placehold.it/24x24"/>
                         </a>
                    </span>
                    <span href="#" th:text="*{author.name}">打不死的小强</span>
                </a>
                <span th:if="*{tags.equals('') or tags == null}" class="new-article-belong">分类:资讯</span>
				<span th:unless="*{tags.equals('') or tags == null}" class="new-article-belong" th:inline="text">分类:[[*{#strings.arraySplit(tags, ',')[0]}]]</span>
            </div>
        </li>
    </ul>
</section>